package com.huawei.spare.part.replace;

import lombok.Data;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public class OperationException extends RuntimeException {

    private String major;
    private String details;

    public OperationException(String major, String details) {
        super(major);
        this.major = major;
        this.details = details;
    }

    public OperationException(Throwable cause, String major, String details) {
        super(major, cause);
        this.major = major;
        this.details = details;
    }

}
